<?php
/**
 * @version 1.5.x
 * @package JoomVision Project
 * @email webmaster@joomvision.com
 * @copyright (C) 2008 http://www.JoomVision.com. All rights reserved.
 */
defined('_JEXEC') or die('Restricted access');// no direct access
require_once (dirname(__FILE__).DS.'helper.php');
$moduleId = $module->id;
$layoutStyle = $params->get('layout_style');
$height = trim( $params->get('height') ); //Height
$autorun = trim( $params->get('autorun') ); //Autorun
if($autorun == 1)
   $autorun = 'true';
else
  $autorun = 'false';
$slideDelay = trim( $params->get('timming'));
switch ($layoutStyle) {
  case "jv_slide1":
    $list_slidecontent = modJVHeadLineHelper::getSlideContent($params);  
    $showthumb = trim( $params->get('showthumb') ); //Show Image Thumbnail
    $thumbsize = trim( $params->get('thumbsize') ); //Thumbnail Size
    $timming = trim( $params->get('timming') );  //Time to rollover content   
    require(JModuleHelper::getLayoutPath('mod_jv_headline'));
    break;
  case "jv_slide2":
    $slides = modJVHeadlineSmoothHelper::getSlideContent($params);     
    require(JModuleHelper::getLayoutPath('mod_jv_headline','smooth'));   
    break;
  case "jv_slide3":    
    $css_width = 'width:'.$params->get('vslide_width').'px';
    $verticalStyle = $params->get('vstyle_effect');
    $css_slidebar_width = 'width:'.$params->get('vslidebar_width').'px';
    $css_height = 'height:'.$height.'px';
    $css_item_heigth ='height:'.$params->get('vitem_height').'px';
    $divHeadLine = "jv_vheadline".$moduleId;
    $slideOuter = "#slide_outer".$moduleId." div.slide";
    $slideBarItem ='#jv_pagislide'.$moduleId." div.slideitem";              
    $slide_width = $params->get('vslide_width');   
    $image_width = $params->get('vimg_width');
    $image_height = $params->get('vimg_height');
    $verticalTemp = ($params->get('vstyle_effect') == 'default') ? 'vertical' : 'vertical_effect';   
    $slides = modJVHeadlineHoriHelper::getSlideContent($params);    
    if(count($slides)){     
      require(JModuleHelper::getLayoutPath('mod_jv_headline',$verticalTemp));  
    }   
    break; 
  case "jv_slide4": 
    $frame_width = ($params->get("frame_width"));   
    $number_items_per_line = ($params->get("number_items_per_line", "2"));   
    $list = modJVHeadlineHoriHelper::getSlideContent($params);  
    if(count($list)) require(JModuleHelper::getLayoutPath('mod_jv_headline','horizontal'));   
    break;
  case "jv_slide5":   
    $isReadMore = $params->get('slide5_readmore');      
    $list = modJVHeadlineHoriHelper::getSlideContent($params);
    if(count($list))
        require(JModuleHelper::getLayoutPath('mod_jv_headline','slideshow5'));
    break;    
}
?>